#include "QualificationRound_DWTG.h"
#include "DancingGoogler_Round.h"
#include <iostream>
#include <fstream>
#include <string>
using namespace std;

void ParseLine(string line)
{

}

QualificationRound_DWTG::QualificationRound_DWTG(void)
{
}


QualificationRound_DWTG::~QualificationRound_DWTG(void)
{
}


void QualificationRound_DWTG::DancingWithTheGooglers(const char* inputFile, const char* outputFile)
{
	string line;
	ifstream myfile(inputFile);
	ofstream output;
	output.open (outputFile);

	if(myfile.is_open())
	{		
		getline(myfile, line);
		int numberOfInputs = atoi(line.c_str());
		for(int i=1; i<= numberOfInputs; i++)
		{
			getline(myfile, line);
			
			output << "Case #" << i << ": " << DancingGoogler_Round(line).MaxNumberOfGooglers() << endl;
		}

		myfile.close();
	}	
	output.close();
}
